package com.bingo.until;

import java.sql.Date;
import java.time.LocalDate;

/**
 * @author Bingo
 * @version 1.0
 * @description 判断是否为当天的工具类
 * @date 2024/3/21 13:22
 */
public class IsToday {

    public static boolean isToday(Date date) {
        LocalDate today = LocalDate.now();
        LocalDate inputDate = date.toLocalDate();
        return today.isEqual(inputDate);
    }
}
